home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
United Public Domain Gold 2
/
United Public Domain Gold 2.iso
/
utilities
/
pu715.dms
/
pu715.adf
/
Install
< prev
next >
Wrap
Text File
|
1994-10-10
|
2KB
|
111 lines
; Installer installation script for The Icon Archive
; $VER: Install 37.5 (10/10/94)
; --------------------------------------------------------------------------
; Set up Variables
(set @default-dest "RAM:")
(set lhacom ":c/lha -m x ")
(set lhaarc "TIA-2:IconArchive2.lha")
(set lhadec "TIA2.lha")
(set delcom ":c/delete ")
; Set up Messages
(set #Bad-kick
(cat "These icons are designed to be used under Kickstart 2.04 or higher!")
)
(set #Welcome
(cat "\n The Icon Archive\n\n"
"Compiled by Kevin A. Kirk\n\n"
"First Edition, October 1994\n\n"
"This archive requires around 4 Meg\n"
"of hard disk space to install successfully.\n")
)
(set #Arcdir "Please select the directory where you would like to install The Icon Archive")
(set #Start "\nInstall The Icon Archive ?")
(set #Decomp "\nDecompressing The Icon Archive")
(set #Dearc "\nUnarchiving The Icon Archive")
(set #Delarc "\nDeleting remaining uncompressed archive")
; --------------------------------------------------------------------------
; Main program
; Check that we are running under 2.04 or higher.
(if (< (/ (getversion) 65536) 37)
(
(abort #bad-kick)
)
)
; Welcome message
(message #welcome)
; Ask where to install The Icon Archive
(set ArcDest
(askdir
(prompt #Arcdir)
(help @askdir-help)
(default @default-dest)
)
)
(set @default-dest ArcDest)
; Ask to start to install
(message #Start)
; Add a trailing / to directory name if necessary
(set Length (strlen ArcDest))
(set CheckDevice (substr ArcDest (- Length 1) 1))
(set InstallPath ArcDest)
(if (<> CheckDevice ":")
(set InstallPath (cat ArcDest "/"))
)
(set ArcDest InstallPath)
; Decompress the archive onto the HD
(
(working #Decomp)
(set Decomm
(cat lhacom lhaarc " " "\"" ArcDest "\"")
)
(run Decomm)
)
; Unarchive the decompressed archive.
(
(working #DeArc)
(set Dearcomm
(cat lhacom "\"" ArcDest lhadec "\"" " " "\"" ArcDest "\"")
)
(run Dearcomm)
)
; Delete remaining archive.
(
(working #Delarc)
(Set Delcomm
(cat delcom "\"" ArcDest lhadec "\"")
)
(run Delcomm)
)
(exit)